// pages/user/user.js
Page({
  data: {
    avatar: '',
    name: '',
    number: '',
    phone: '',
    month: '07',
    year: '2022'
  },
  async onLoad() {
   const res = await wx.$http.get('/driver/users')
   console.log('用户信息',res);
   this.setData({...res.data})
   const { month, year } = this.data
   const res1 = await wx.$http.get('/driver/users/taskReport', { month, year } )
   console.log('任务数据',res1)
  }
})